package com.qidianit.mes.md.mapper;

import com.qidianit.mes.pojo.BOM;
import com.qidianit.mes.pojo.Material;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 奇幻夜之梦
 * @Company 起点编程
 * @Description
 * @Time 2024/10/22 18:30
 */
public interface BOMMapper {
    List<BOM> selectByPage(Long materialId);

    int save(@Param("materialOfId") Long materialOfId, @Param("material") Material material);

    int updateById(BOM bom);

    BOM selectById(Long bomId);

    int deleteById(Long bomId);

    int updateBomsByIds(@Param("ids")String[] ids, @Param("statu") int statu);
}

